package com.javasm.crm.controller.aftersale;


import com.javasm.crm.common.http.AxiosResult;
import com.javasm.crm.domin.vo.aftersale.CitiesVO;
import com.javasm.crm.service.aftersale.ICitiesService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author lirui
 * @since 2021-07-17
 */
@RestController
@RequestMapping("/crm/cities")
public class CitiesController {

    @Resource
    private ICitiesService citiesService;

    @GetMapping("getLocas")
    public AxiosResult getLocas() {

        List<CitiesVO> list = citiesService.getCities(null);

        return AxiosResult.success(list);
    }
}
